package com.yanfan.energy.domain;

import com.yanfan.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 物料记录表(MaterialRecords)实体类
 *
 * @author makejava
 * @since 2023-01-09 09:59:49
 */
public class MaterialRecords implements Serializable {
    private static final long serialVersionUID = 452087840949928607L;
    /**
     * 主键
     */
    @Excel(name = "物料编号")
    private Long id;
    /**
     * 物料编号
     */
    @Excel(name = "物料编号")
    private String materialNumber;
    /**
     * 状态（1、入库，2、出库）
     */
    @Excel(name = "状态")
    private Long type;
    /**
     * 修改前数量
     */
    @Excel(name = "修改前数量")
    private Long beforeQuantity;
    /**
     * 修改后数量
     */
    @Excel(name = "修改后数量")
    private Long afterQuantity;
    /**
     * 出库或者入库的数量
     *
     * @author caijinkang
     * @date 2023/1/10 15:23
     * @param null
     * @return null
     */
    @Excel(name = "出库/入库数量")
    private Integer countQuantity;
    /**
     * 操作人
     */
    @Excel(name = "操作人")
    private String operator;
    /**
     * 操作时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间")
    private Date operatorDate;
    /**
     * 订单id
     *
     * @author caijinkang
     * @date 2023/1/10 10:26
     * @param null
     * @return null
     */
    @Excel(name = "订单id")
    private Long orderId;
    /**
     * 备注
     *
     * @author caijinkang
     * @date 2023/1/10 11:42
     * @param null
     * @return null
     */
    @Excel(name = "备注")
    private String remarks;
    /**
     * 物料名称
     *
     * @author caijinkang
     * @date 2023/1/10 14:47
     * @param null
     * @return null
     */
    @Excel(name = "物料名称")
    private String name;
    /**
     * 物料分类名称
     *
     * @author caijinkang
     * @date 2023/1/10 14:50
     * @param null
     * @return null
     */
    @Excel(name = "物料分类编号")
    private String classifyName;
    /**
     * 品牌型号
     *
     * @author caijinkang
     * @date 2023/1/10 14:55
     * @param null
     * @return null
     */
    @Excel(name = "品牌型号")
    private String brand;
    /**
     * 品牌规格
     *
     * @author caijinkang
     * @date 2023/1/10 14:56
     * @param null
     * @return null
     */
    @Excel(name = "品牌规格")
    private String specification;
    /**
     * 单位
     *
     * @author caijinkang
     * @date 2023/1/10 14:56
     * @param null
     * @return null
     */
    @Excel(name = "单位")
    private String unit;
    /**
     * 订单编号
     *
     * @author caijinkang
     * @date 2023/1/10 14:57
     * @param null
     * @return null
     */
    @Excel(name = "订单编号")
    private String orderNumber;
    /**
     * 创建人
     */
    @Excel(name = "创建热")
    private String createdBy;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间")
    private Date createdDate;
    /**
     * 修改时间
     */
    @Excel(name = "修改时间")
    private Date lastModifiedDate;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMaterialNumber() {
        return materialNumber;
    }

    public void setMaterialNumber(String materialNumber) {
        this.materialNumber = materialNumber;
    }

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Long getBeforeQuantity() {
        return beforeQuantity;
    }

    public void setBeforeQuantity(Long beforeQuantity) {
        this.beforeQuantity = beforeQuantity;
    }

    public Long getAfterQuantity() {
        return afterQuantity;
    }

    public void setAfterQuantity(Long afterQuantity) {
        this.afterQuantity = afterQuantity;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Date getOperatorDate() {
        return operatorDate;
    }

    public void setOperatorDate(Date operatorDate) {
        this.operatorDate = operatorDate;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public Date getLastModifiedDate() {
        return lastModifiedDate;
    }

    public void setLastModifiedDate(Date lastModifiedDate) {
        this.lastModifiedDate = lastModifiedDate;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getClassifyName() {
        return classifyName;
    }

    public void setClassifyName(String classifyName) {
        this.classifyName = classifyName;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Integer getCountQuantity() {
        return countQuantity;
    }

    public void setCountQuantity(Integer countQuantity) {
        this.countQuantity = countQuantity;
    }
}

